package ${rootpackage}${moduleLow}.dao.impl;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Repository;

import com.clgk.wechatmall.common.sql.CommonDaoImpl;
import com.clgk.wechatmall.common.sql.Page;
import ${rootpackage}${moduleLow}.dao.${module}Dao;
import ${rootpackage}${moduleLow}.bean.${module}Bean;

@Repository
public class ${module}DaoImpl extends CommonDaoImpl implements ${module}Dao {

	@Override
	public Integer deleteByIds(String ids) {
		String sql = "DELETE FROM ${tablename} WHERE ID IN ("+ids+")";
		return this.update(sql, new Object[]{});
	}

	@Override
	public List<${module}Bean> queryList(${module}Bean bean, Page page) {
		StringBuilder sql = new StringBuilder("");
		List<Object> params = new ArrayList<Object>();
		sql.append(" SELECT * ");
		sql.append(" FROM ${tablename} t ");
		sql.append(" WHERE 1=1 ");
		if(bean != null){
			
		}
		return this.query(sql.toString(), ${module}Bean.class, params, page);
	}

}
